package wrapper_package;

public class DotEqualBehaviourWithWrapper 
{
	public static void main(String[] args) 
	{
		/* For all wrapper classes, two objects are equal (by equal method),if
		 * 1. Both are of same type, and
		 * 2. Both have the same value.
		 */
		Integer a = new Integer(5);
		Integer b = new Integer(5);
		System.out.println(a.equals(b));
		
		Integer c = 128;
		Integer d = 128;
		System.out.println(c.equals(d));

	}

}
